package cn.good.yan.b7;

/**
 * 自定义异常类
 *
 * @author shengren.yan
 * @create 2023-07-22
 */
public class BaseException extends Exception {

    private String errorMessage;

    public BaseException(Throwable throwable) {
        super(throwable);
    }

    public BaseException(String errorMessage) {
        super(errorMessage);
        this.errorMessage = errorMessage;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

}

